#include <iomanip>
#include "Student.h"

Student::Student(){
    id = 0;
    fname = "";
    dob = "";
    addr = "";
    year = 0;
    program = "";
    classname = "";
}

Student::Student(int i_id,string i_fname,string i_dob,string i_addr,int i_year,string i_program,string i_classname){
    id = i_id;
    fname = i_fname;
    dob = i_dob;
    addr = i_addr;
    year = i_year;
    program = i_program;
    classname = i_classname;
}

void Student::Show_student(){
   cout<<setw(3)<<id<<setw(20)<<fname<<setw(11)<<addr<<setw(12)<<dob<<setw(5)<<year<<setw(5)<<classname<<endl;
}

void Student::Set_year(int n_year){
    year = n_year;
}

void Student::Set_program(string n_program){
    program = n_program;
}

void Student::Set_classname(string n_classname){
    classname = n_classname;
}

int Student::Get_year(){
    return year;
}

string Student::Get_program(){
    return program;
}

string Student::Get_classname(){
    return classname;
}
